#!/usr/bin/python
# -*- coding: utf8 -*-

# 密函委托 - 驱离

import auto_gaming_utils as utils
from commission_base import CommissionBase

def go_farm_place(farm_round):

    place1 = utils.ImgElement("commission", "密函委托 - 探险无尽 - 黄房子.png", 0, utils.TITLE_BAR_HEIGHT, 200, 200)
    place2 = utils.ImgElement("commission", "密函委托 - 探险无尽 - 破房子.png", 0, utils.TITLE_BAR_HEIGHT, 200, 200)

    place1.debug = True
    place2.debug = True

    if place1.matched():
        print("此场景为黄房子")
    elif place2.matched():
        print("此场景为破房子")
    else:
        print("不认识这个地方！！！！！！！！！！！！！！！")

if __name__ == "__main__":

    commission = CommissionBase()
    commission.is_mihan = True
    commission.start_farming(go_farm_place)

